package com.bobi.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.io.Serializable;

/**
 * 商品(BobiGoods)实体类
 *
 * @author makejava
 * @since 2023-07-02 16:30:09
 */
@Data
@TableName("bobi_goods")
@AllArgsConstructor
@NoArgsConstructor
public class Goods extends BaseEntity {
    private static final long serialVersionUID = -54023050295580176L;

    /**
     * 商品名称
     */
    private String goodsName;
    /**
     * 商品库存
     */
    private Integer quantity;
    /**
     * 分类外键
     */
    private Integer categoryId;
    /**
     * 商品图片
     */
    private String goodsImg;
    /**
     * 商品价格
     */
    private Double price;
    /**
     * 计量单位外键
     */
    private String unitId;
    /**
     * 消费者购买数量,冗余字段
     */
    private Integer buyCount;
    /**
     * 进货数量
     */
    private Integer stockNum;
    /**
     * 上架状态（上架、下架）
     */
    private String marketEnable;
    /**
     * 进货订单id
     */
    private Integer purchaseOrderId;
}

